<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box{
        width:300px;
        height:300px;
        background-color: red;
        margin:100px auto;
        transform:rotate(45deg) scaleX(0.5);
        /* 先缩放后旋转 */
        /* transition: all 1s; */
        /* transform-origin: right bottom;; */
    }
    .box:hover{
        transform:skew(0deg,30deg);
    }
</style>
<body>
  <div class="box"></div>  
</body>
</html>